{% extends 'iframe/basePlus.html.twig' %}
{% block cardHeader %}
    查看<a href="/Admin/Field/index" class="layui-btn layui-btn-sm" style="float:right;margin-top:6px;">列表</a>
{% endblock %}
{% block cardBody %}
    <table class="layui-table">
        <colgroup>
            <col width="220">
            <col width="2000">
        </colgroup>
        <tr>
            <td>ID</td>
            <td>{{ rs.id }}</td>
        </tr>
        <tr>
            <td>名称</td>
            <td>{{ rs.dry_name }}</td>
        </tr>
        <tr>
            <td>字段</td>
            <td>{{ rs.dry_field }}</td>
        </tr>
        <tr>
            <td>字段类型</td>
            <td><div class="dryMergeRequest" role="tag" field="dry_field_type" url="/Api/FieldType/getList" iframeUrl="" full="1">{{ rs.dry_field_type }}</div></td>
        </tr>
        <tr>
            <td>是否主键字段</td>
            <td><div class="dryMergeRequest" role="tag" field="dry_is_primary" url="/Api/Choice/getListByKey?key=yesNo" iframeUrl="" full="1">{{ rs.dry_is_primary }}</div></td>
        </tr>
        <tr>
            <td>是否更新日期时间字段</td>
            <td><div class="dryMergeRequest" role="tag" field="dry_is_update_date_time" url="/Api/Choice/getListByKey?key=yesNo" iframeUrl="" full="1">{{ rs.dry_is_update_date_time }}</div></td>
        </tr>
        <tr>
            <td>是否添加日期时间字段</td>
            <td><div class="dryMergeRequest" role="tag" field="dry_is_add_date_time" url="/Api/Choice/getListByKey?key=yesNo" iframeUrl="" full="1">{{ rs.dry_is_add_date_time }}</div></td>
        </tr>
        <tr>
            <td>默认值</td>
            <td>{{ rs.dry_default }}</td>
        </tr>
        <tr>
            <td>表单默认值</td>
            <td>{{ rs.dry_form_default }}</td>
        </tr>
        <tr>
            <td>状态</td>
            <td><div class="dryMergeRequest" role="tag" field="dry_status" url="/Api/Choice/getListByKey?key=status" iframeUrl="" full="1">{{ rs.dry_status }}</div></td>
        </tr>
        <tr>
            <td>备注</td>
            <td>{{ rs.dry_note }}</td>
        </tr>
        <tr>
            <td>placeholder</td>
            <td>{{ rs.dry_placeholder }}</td>
        </tr>
        <tr>
            <td>排序</td>
            <td>{{ rs.dry_sort }}</td>
        </tr>
        <tr>
            <td>添加时间</td>
            <td>{{ rs.dry_add_time }}</td>
        </tr>

        <tr>
            <td>表单类型</td>
            <td><div class="dryMergeRequest" role="tag" field="dry_form_type" url="/Api/Choice/getListByKey?key=formType" iframeUrl="" full="1">{{ rs.dry_form_type }}</div></td>
        </tr>
        <tr>
            <td>数据源</td>
            <td><div class="dryMergeRequest" role="tag" field="dry_data_source" url="/Api/Choice/getListByKey?key=fieldDataSource" iframeUrl="" full="1">{{ rs.dry_data_source }}</div></td>
        </tr>
        <tr>
            <td>变量</td>
            <td><div class="dryMergeRequest" role="tag" field="dry_variable" url="/Api/Choice/getListByKey?key=variable" iframeUrl="" full="1">{{ rs.dry_variable }}</div></td>
        </tr>
        <tr>
            <td>域名</td>
            <td><div class="dryMergeRequest" role="tag" field="dry_domain" url="/Api/Choice/getListByKey?key=domain" iframeUrl="" full="1">{{ rs.dry_domain }}</div></td>
        </tr>
        <tr>
            <td>API地址</td>
            <td>{{ rs.dry_api }}</td>
        </tr>
    </table>
    <script>
        layui.use(['dry'], function(dry){
            dry.mergeRequest();
        });
    </script>
{% endblock %}